package Message.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class Category {

    private Integer id;
    private Integer type;
    private String name;
    public Integer sort;
    public int status;
    // 该注解可以控制响应数据的日期格式
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("createTime")
    private LocalDateTime create_time;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("updateTime")
    private LocalDateTime update_time;

    @JsonProperty("createUser")
    private Long create_user;

    @JsonProperty("updateUser")
    private Long update_user;
    }




